package com.wash.shoes.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wash.shoes.entity.ShopPo;
import com.wash.shoes.entity.SysUserPo;
import com.wash.shoes.mapper.SysUserMapper;
import com.wash.shoes.page.PageFactory;
import com.wash.shoes.service.SysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author ljg
 * @since 2024-09-21
 */
@Service(value = "SysUserServiceImpl2")
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserPo> implements SysUserService {


    @Override
    public Page<SysUserPo> pageList(SysUserPo sysUserPo) {
        Page page = PageFactory.defaultPage();
        List<SysUserPo> dataList = baseMapper.pageList(page, sysUserPo);
        page.setRecords(dataList);
        return page;
    }

    @Override
    public Page<SysUserPo> noShopList(SysUserPo sysUserPo) {
        Page page = PageFactory.defaultPage();
        List<SysUserPo> dataList = baseMapper.noShopList(page, sysUserPo);
        page.setRecords(dataList);
        return page;
    }


}
